
package test;

/**
 *
 * @author mpower
 */
public class Contact {
    private String name;
    private String address1;
    private String address2;
    private String city;
    private String telephone;
    private String email;

    public Contact(String name) {
        this.name = name;
    }

    public Contact(String name, String address1, String city) {
        this(name);
        this.address1 = address1;
        this.city = city;
    }

    public Contact(String name, String address1, String address2, String city, String telephone, String email) {
        this(name,address1,city);//constructor call
        this.address2 = address2;
        this.telephone = telephone;
        this.email = email;
    }

    public String getAddress1() {
        return address1;
    }

    public String getAddress2() {
        return address2;
    }

    public String getCity() {
        return city;
    }

    public String getEmail() {
        return email;
    }

    public String getName() {
        return name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }
}
